#!/usr/bin/python3
# -*- coding:utf-8 -*-
"""
@author: KevinQi
@file: permission.py
@time: 2023/12/26 15:43
@desc: many paths important file of setting for system !
"""
from backend.workjob.admin.views.dept import DeptModelViewSet
from backend.workjob.admin.views.factory import FactoryView
from backend.workjob.admin.views.menu import MenuModelViewSet
from backend.workjob.admin.views.permission import DeptHandler, SingleDeptHandler, RoleHandler, FactoryModelViewSet, \
    PostModelViewSet, FileModelViewSet, ConfigSettingsModelViewSet, GetCondfigModelViewSet
from backend.workjob.admin.views.role import RoleModelViewSet
from backend.workjob.admin.views.jtask import TaskModelViewSet
from backend.workjob.admin.views.users import UserModelViewSet

permission_urls = [
    (r"/api/sys/", FactoryView),
    # (r"/api/api/dept/", DeptHandler),
    # (r"/api/api/dept/getApiById", DeptHandler.getApiById),
    # (r"/api/api/dept/(\d+)/", SingleDeptHandler),
    # (r"/api/api/role/(\d+)/", SingleDeptHandler),
    # (r"/api/api/role/", RoleHandler),
    (r"/api/sys/factory/", FactoryModelViewSet),
    (r"/api/sys/post/", PostModelViewSet),
    (r"/api/sys/file/", FileModelViewSet),
    (r"/api/sys/menu/", MenuModelViewSet),
    (r"/api/sys/role/", RoleModelViewSet),
    (r"/api/sys/user/", UserModelViewSet),
    (r"/api/sys/dept/", DeptModelViewSet),
    (r"/api/sys/configurations/", ConfigSettingsModelViewSet),
    (r"/api/sys/get_config_key", GetCondfigModelViewSet),
]
